<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">

  <script type=text/javascript src="__PUBLIC__/Js/jquery-1.11.3.min.js"></script>

    <title>订单详情</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/semantic.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/main.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/common.css">



    <style type="text/css">

        .ui.grid>*{padding: 10px;}

        .ui.segments{margin: 0.5em 0;}
        .ui.segment, .ui.segments .segment {
             font-size: 12px; 
        }
        .ui.segments:not(.horizontal)>.segment:first-child {

             border-radius: none; 
        }
        .ui.segments {

             border: none; 
             border-radius: 0em; 
        }
        .ui.segments:not(.horizontal)>.segment:first-child,.ui.segments:not(.horizontal)>.segment:last-child{border-radius: 0;}
    </style>

    </head>
    <body>
    

    <div class="pusher">


                 <div class="boxthree">
                     <div class="ui equal width stackable internally celled grid">

                          <div class="center aligned  row">

                             <div class="img tba">
                                      <div class="m-r-img">
                                          <img class="ui top aligned tiny image half-img" src="{$img}">
                                      </div>
                              </div>
                          <div class="hot-info">
                             <div class="hto-p">
                                 <h3 class="hto-ph3 m-b-5 f28 m-t-27">订单编号：{$rs.order_id}</h3>
                                 <p class="hto-title">价格：{$rs.money}元</p>
                                 <p class="hto-title">数量：{$rs.shu}</p>
                                 <p class="hto-title">总价：{$rs.cprice}</p>
                             </div>
                          </div>

                         </div>

                        
                          <div class="or-box">
                            <div class="zhifu-info">生成订单时间：<span>{$rs.pdt|date='Y-m-d H:i:s',###}</span></div>
                            <div class="zhifu-info">订单状态：<span>
                                <eq name="rs['have_pay']" value='0'>未支付</eq>
                                <eq name="rs['have_pay']" value='1'>已支付</eq>
                            </span>
                            </div>

                              <div class="zhifu-info">收货姓名：<span><a  style="color: #0000B0" >{$rs.us_name}</a></span></div>
                              <div class="zhifu-info">收货电话：<span><a  style="color: #0000B0" >{$rs.us_tel}</a></span></div>
                              <div class="zhifu-info">收货地址：<span><a  style="color: #0000B0">{$rs.us_address}</a></span></div>

                              <!--这部分是可以修改收货信息的-->
                              <!--<div class="zhifu-info">收货姓名：<span><a  style="color: #0000B0" onclick="tz_sy({$rs.id},1)">{$rs.us_name}</a></span></div>-->
                              <!--<div class="zhifu-info">收货电话：<span><a  style="color: #0000B0" onclick="tz_sy({$rs.id},2)">{$rs.us_tel}</a></span></div>-->
                              <!--<div class="zhifu-info">收货地址：<span><a  style="color: #0000B0" onclick="tz_sy({$rs.id},3)">{$rs.us_address}</a></span></div>-->


                              <script type="text/javascript">
                                  function tz_sy(oid,type)
                                  {
                                      if ( type ==1){
                                          var str=prompt("请输入需要更换的姓名，在订单支付后将不可修改","");
                                          if(str)
                                          {
                                              $.post("__APP__/Gouwu/change_receive_info",{ val:str,oid:oid,type:type},function (data) {
                                                  alert(data);
                                                  window.location.reload();
                                              });
                                              //                    alert("您刚输入的是："+ str)
                                          }
                                      }
                                      if ( type ==2){
                                      var str=prompt("请输入需要更换的电话号码，在订单支付后将不可修改","");
                                          if(str)
                                          {
                                              $.post("__APP__/Gouwu/change_receive_info",{ val:str,oid:oid,type:type},function (data) {
                                                  alert(data);
                                                  window.location.reload();
                                              });
                                              //                    alert("您刚输入的是："+ str)
                                          }
                                      }

                                      if ( type ==3){
                                          var str=prompt("请输入需要更换的收货地址，在订单支付后将不可修改","");
                                          if(str)
                                          {
                                              $.post("__APP__/Gouwu/change_receive_info",{ val:str,oid:oid,type:type},function (data) {
                                                  alert(data);
                                                  window.location.reload();
                                              });
                                              //                    alert("您刚输入的是："+ str)
                                          }
                                      }

                                  }
                              </script>

                              <!--<div class="zhifu-info">完成订单时间：-->
                                <!--<span>-->
                                   <!--<eq name="rs['is_pay']" value='0'>未完成支付</eq>-->
                                   <!--<eq name="rs['is_pay']" value='1'>{$rs.pay_time|date='Y-m-d H:i:s',###}</eq>-->
                                <!--</span>-->
                            <!--</div>-->
                            <!--<div class="zhifu-info">总金额：<span>￥{$rs['money']}</span></div>-->
                          </div>

                     </div>
                 </div>
                      
    </div>
    <include file="Public:footer" />